<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>laravel 留言信息</title>
</head>
<body text='fuchsia'>
	
	<table border="1" bgcolor='aqua'>
	<caption><h1>留言信息</h1></caption>
		<tr>
			<th>标题</th>
			<th>内容</th>
			<th>邮箱</th>
			<th>操作</th>
		</tr>
		<?php foreach($msgs as $m){ ?>
		<tr>
			<td><?php echo $m->title; ?></td>
			<td><?php echo $m->content; ?></td>
			<td><?php echo $m->email; ?></td>
			<td>
				<a href="/msg/del/<?php echo $m->id; ?>">删除</a>
				||
				<a href="/msg/up/<?php echo $m->id; ?>">修改</a>
			</td>
		</tr>
			
		<?php } ?>
		<tr>
			<td colspan="4" align="right">共<?php echo $msg['count']; ?>篇留言</td>
		</tr>
	</table>
</body>
</html>